#!/usr/bin/ python3
# -*- coding: utf-8 -*-
"""
常量定义文件
"""

# 服务环境所需配置


# 1.服务器相关配置参数
class ServerConfig():
    """
    server config
    """
    SERVER_URL = "120.25.204.182"
    WEB_PORT = "8080"


# 2.数据库相关配置参数
class DatabaseConfig():
    """
    database config
    """
    DATABASE_URL = "120.25.204.182"
    DATABASE_PORT = "5432"
    USER = "postgres"
    PASSWORD = "12345"
    DATABASE_NAME = "postgres"


# 百度地图服务端应用AK
SERVER_APP_KEY = "d0wEr5tlFNZ9nHdqht23wzdwU3BBMsVK"


# 任务执行结果状态字定义
class TaskStatusKeys():
    """
    task status keys:
        success, failed
    """
    SUCCESS = "success"
    FAILED = "failed"